import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqPlayerItemHelper } from "../Public/SeqPlayerItemHelper";
import { SEntityId } from "../Public/SEntityId";
import { EGuildWarehouseState } from "./EGuildWarehouseState";
type int = number;
//class SGuildWarehouseAssign
    
    export  class SGuildWarehouseAssign extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGuildWarehouseAssign();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.toEntityId.__write(arg1);
            SeqPlayerItemHelper.write(arg1, this.items);
            this.state.__write(arg1);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.toEntityId = new SEntityId();
            this.toEntityId.__read(arg1);
            this.items = SeqPlayerItemHelper.read(arg1);
            this.state = EGuildWarehouseState.__read(arg1);
            return;
        }

        public /* const */_type: int=12045;

        public /* var */toEntityId: SEntityId;

        public /* var */items: Array<any>;

        public /* var */state: EGuildWarehouseState;

        public static /* var */_regist: SGuildWarehouseAssign;
    }

            SGuildWarehouseAssign._regist = new SGuildWarehouseAssign(true);
        